package reduce.fz.com.reduce.bean;

import java.io.Serializable;
import java.util.List;

import reduce.fz.com.reduce.constant.ParamConst;

/**
 * 发布见证卡片对象
 * Created by qingshengzheng on 15/11/17.
 */
public class WitnessCard implements Serializable {

    //卡片id
    public Long cardid;
    //卡片类型，预留
    public int cardtype = 0;
    //发布时间，时间戳
    public long pubtime;
    //发布用户
    public User user;
    //附加图片
    public List<Pic> affimages;
    //
    public Video video;
    //teamid
    public Long teamid;
    public String info;
    //描述
    public String description;
    //用户id
    public Long uid;

    public Long keepdays = 0L;

    public Long getKeepdays() {
        return keepdays;
    }

    public void setKeepdays(Long keepdays) {
        this.keepdays = keepdays;
    }

    public WitnessAttach witnessAttach = new WitnessAttach();

    public Long getCardid() {
        return cardid;
    }

    public void setCardid(Long cardid) {
        this.cardid = cardid;
    }

    public int getCardtype() {
        return cardtype;
    }

    public void setCardtype(int cardtype) {
        this.cardtype = cardtype;
    }

    public long getPubtime() {
        return pubtime;
    }

    public void setPubtime(long pubtime) {
        this.pubtime = pubtime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Pic> getAffimages() {
        return affimages;
    }

    public void setAffimages(List<Pic> affimages) {
        this.affimages = affimages;
    }

    public Long getTeamid() {
        return teamid;
    }

    public void setTeamid(Long teamid) {
        this.teamid = teamid;
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public WitnessAttach getWitnessAttach() {
        return witnessAttach;
    }

    public void setWitnessAttach(WitnessAttach witnessAttach) {
        this.witnessAttach = witnessAttach;
    }

    public static WitnessCard videoCard(String url, String description) {
        WitnessCard card = new WitnessCard();
        Video video = new Video();
        video.url=url;
        card.cardtype = ParamConst.CARD_TYPE_VIDEO;
        card.description = description;
        card.video = video;
        return card;

    }
}
